<?php
/*
 * Created on 24/08/2007
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
 <?php use_helper('Object', 'Validation', 'ObjectAdmin', 'I18N', 'Date') ?>
 <?php use_helper('Javascript')?>
<table width="60%" height="60%" border="0" align="center" id="tabla_geneal">
  <tr>
    <td colspan="2">&nbsp;

      <?
         $id_est  = 2;
         $objCita = new Cita();
         $ced     = $objCita->getCedulaEstudianteConId($id_est);
         $objEstudiante = new Estudiante();
         $datos = $objEstudiante->getDatosDelEstudianteConCed($ced);
         $n = $datos->getNombre();
         $a = $datos->getApellido();
         $c = $datos->getCedula();
         $t = $datos->getTelefonoCelular();
      ?>


      <table width="100%" height="100%" border="0" align="top">
  		<tr>
    		<td>&nbsp;<?echo 'Nombres:'.' '.$n?></td>
  		</tr>
  		<tr>
    		<td>&nbsp;<?echo 'Apellidos:'.' '.$a?></td>
  		</tr>
  		<tr>
    		<td>&nbsp;<?echo 'Cedula:'.' '.$c?></td>
  		</tr>
  		<tr>
    		<td>&nbsp;<?echo 'Nro. Celular:'.' '.$t?></td>
  		</tr>
  		<tr>
    		<td>&nbsp;<??></td>
  		</tr>
	  </table>


    </td>
    <td width="34%">&nbsp;

     <?php echo image_tag('fotos/mario.jpg', 'alt=imagen size=130x130') ?>
          </td>
        </tr>



     </td>
  </tr>
  <tr>
    <td width="33%">&nbsp;



 <?php echo form_tag('solicitarcitas/edit', array(
  'method'    =>'post',
  'id'        => 'sf_admin_edit_form',
  'name'      => 'sf_admin_edit_form',
  'multipart' => true,
)) ?>

          <select name="select3">
          <option selected>Especialidades</option>

          <?
          $objsRol = new Rol();
          $especialidades = $objsRol->getRolesDeEspecialistas();
           foreach($especialidades as $regcar)
          {?>
            <option><?
             $idE=  $regcar->getId();
             echo trim($regcar->getDescripcion()); ?></option>
          <?}
          ?>
          </select>


          <?php echo input_date_tag('prueba',date('Y-m-d'),'rich=true' ) ?>




     <?php echo submit_to_remote('filter', __('Ver Especialistas'), array(
     'update' => 'nuevo2',
     'method' => 'get',
     'url' => 'solicitarcitas/nuevo',
     )) ?>


     </form>


    </td>
    <td width="33%">&nbsp;<div id="nuevo2" border="2" width="33%"></div></td>
    <td>&nbsp;
    <div id="nuevo" border="2" width="33%">
     <?
          //$blq = $objCita->getObjsBloquesDisponiblesDeEspecialista(1,'2007-08-31');
          //echo $blq[1]->getHoras();
          //foreach($blq as $regdec)
          //{
          //   echo $regdec->getHoras();
          //}
          $blq = $objCita->getObjsBloquesDisponiblesDeEspecialista(1,'2007-08-31',1);
          ?>
			<select name="select2" >
            <option selected>Horas</option>
          <?
          foreach($blq as $regdec)
          {
          	echo ' '.$regdec->getHoras();
          	?>
          <option><? echo $regdec->getHoras() ?></option>
          <?
          }?>
            </select>

    </div></td>
  </tr>
  <tr>
    <td>&nbsp;<div id="nuevo" border="2" width="33%">

    </div></td>
    <td>&nbsp;<div id="nuevo" border="2" width="33%"></div></td>
    <td>&nbsp;<div id="nuevo" border="2" width="33%"></div></td>
  </tr>
</table>
